package com.archetypus.projectschedule.common;

import java.util.HashMap;
import java.util.Map;

public class Configuration {

	private static Configuration configuration;

	private Map<String, String> appParameters;

	private Configuration() {
		appParameters = new HashMap<String, String>();
	}

	public synchronized static Configuration getInstance() {
		if (configuration == null) {
			configuration = new Configuration();
		}
		return configuration;
	}

	public void init(Map<String, String> config) {
		this.appParameters = config;
	}

	public String get(String clave) {
		return appParameters.get(clave);
	}
}
